package com.red.star.macalline.data.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;

/**
 * @author AMGuo
 * @Description 模板消息推送日志
 * @date 2018/03/28 12:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_template_log")
public class TemplateLog extends BaseEntity {

	/**
	 * 推送人adminid
	 */
	private Integer sendAdminId;

	/**
	 * 接收人openid
	 */
	private String receiverOpenId;

	/**
	 * 消息模板id
	 */
	private Integer msgTemplateId;

	/**
	 * 来源（购买成功发送，管理员触发）
	 */
	private String source;

	/**
	 * 状态  true：成功  false：失败
	 */
	private Boolean flag;

	/**
	 * 响应信息
	 */
	private String responseMsg;

    /**
     * 导购员ID
     */
    private Integer employeeId;

    public TemplateLog(Integer sendAdminId, String receiverOpenId, Integer msgTemplateId, String source, Boolean flag, String responseMsg) {
        this.sendAdminId = sendAdminId;
        this.receiverOpenId = receiverOpenId;
        this.msgTemplateId = msgTemplateId;
        this.source = source;
        this.flag = flag;
        this.responseMsg = responseMsg;
    }
}
